<script type="text/html" template lay-done="layui.data.sendParams(d);">
    <div class="layui-form coreshop-form layui-form-pane" lay-filter="LAY-app-CoreCmsOrderEdit-editForm" id="LAY-app-CoreCmsOrderEdit-editForm">
        <input type="hidden" name="id" value="{{d.params.data.model.id || '' }}" />
        <div class="layui-form-item">
            <div class="layui-inline layui-input-wrap layui-input-wrap-prefix">
                <label class="layui-form-label layui-form-required">客户名字：</label>
                <div class="layui-input-inline">
                    <input type="text" name="shipName" required lay-verify="required" class="layui-input" lay-affix="clear" value="{{d.params.data.model.shipName || '' }}">
                </div>
            </div>
            <div class="layui-inline layui-input-wrap layui-input-wrap-prefix">
                <label class="layui-form-label layui-form-required">手机号：</label>
                <div class="layui-input-inline">
                    <input type="text" name="shipMobile" required lay-verify="required|phone" class="layui-input" lay-affix="clear" value="{{d.params.data.model.shipMobile || '' }}">
                </div>
            </div>
        </div>

        <div class="layui-form-item text-right core-hidden">
            <input type="button" class="layui-btn" lay-submit lay-filter="LAY-app-CoreCmsOrderEdit-editForm-submit" id="LAY-app-CoreCmsOrderEdit-editForm-submit" value="确认编辑">
        </div>
    </div>
</script>
<script>
    var debug = layui.setter.debug;
    layui.data.sendParams = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log(d.params.data); }
        layui.use(['admin', 'form', 'laydate', 'upload', 'coreHelper', 'cropperImg'],
            function () {
                var $ = layui.$
                    , form = layui.form
                    , admin = layui.admin
                    , laydate = layui.laydate
                    , upload = layui.upload
                    , cropperImg = layui.cropperImg
                    , coreHelper = layui.coreHelper;

                laydate.render({
                    elem: '#editTime-CoreCmsDepartment-createTime',
                    type: 'datetime',
                    fullPanel: true
                });
                form.verify({

                });
                //重载form
                form.render(null, 'LAY-app-CoreCmsOrderEdit-editForm');
            })
    };
</script>
